/**
 * @Description: api模块-users模块(按后端模块)
 * @Author: zhen
 * @Date: 2023-10-18
 */
import { request } from '@/api/request';

// 登录接口
interface loginParams {
  username: string;
  password: string;
}
export const login = async (params: loginParams) => {
  const response = await request<any>({
    url: '/users/login',
    method: 'POST',
    data: params
  });
  return response;
};
